package com.sm.scorpio.ui.fragment.mine;


import androidx.annotation.Nullable;

import com.scorpio.baselibrary.adapter.BasicQuickAdapter;
import com.scorpio.baselibrary.adapter.BasicViewHolder;
import com.sm.scorpio.R;

import java.util.List;

/**
 * created by zhud on 2019/7/12
 */
public class MineMenuListAdapter extends BasicQuickAdapter<MineMenuItemBean, BasicViewHolder> {
    public MineMenuListAdapter(@Nullable List data) {
        super(R.layout.item_mine_bottom, data);
    }

    @Override
    protected void convert(BasicViewHolder helper, MineMenuItemBean item) {
        helper.addOnClickListener(R.id.mine_item_layout)
                .setImageResource(R.id.mine_item_left_image, item.image_id)
                .setGone(R.id.item_top_division_line, item.isShowTopLine)
                .setGone(R.id.item_top_division, item.isShowTopDivision)
                .setGone(R.id.item_arrows_rigth_btn, item.isShowRight)
                .setText(R.id.mine_item_rigth_tv, item.remark)
                .setText(R.id.mine_item_title, item.string_id);
    }
}
